﻿@page "/fetchdata"
@attribute [TabItemOption(Text = "FetchData")]
@inject WeatherForecastService ForecastService

<PageTitle>FetchData</PageTitle>

<h1>Department</h1>

@*@if (Departments!.Count == 0)
{
    <p>Loading...</p>
}
else
{*@
    <Table TItem="Department" HasChildrenColumnName="HasChildren" ShowExtendButtons="true" ShowToolbar="true" IsTree="true"
       Items="Departments" IsBordered="true" IsStriped="true" OnTreeExpand="@OnTreeExpand" ShowLoading="true" ShowSkeleton="true"
       AutoGenerateColumns="true"></Table>
@*}*@









